package com.loveprogrammer.lowercode.dna.service;

import com.loveprogrammer.lowercode.common.ReturnMessage;
import com.loveprogrammer.lowercode.dna.common.CommonInfo;
import com.loveprogrammer.lowercode.dna.instance.bo.Inst;

public interface InstService {

    Inst initInst(CommonInfo commonInfo,String businessType,String typeCode);

    Inst saveInst(CommonInfo commonInfo,Inst inst);


    /***
     *
     * @param commonInfo
     * @param businessType
     * @param dnaCode
     * @param cellKey 主键 可能不一定是Long类型
     * @return
     */
    ReturnMessage<Inst> getInst(CommonInfo commonInfo, String businessType, String dnaCode, Object cellKey);

    ReturnMessage<Object> deleteInst(CommonInfo commonInfo, String businessType,String dnaCode,Object cellKey);

}
